package com.xtecher.app.column.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Luhao on 2017/2/22.
 */

public class ColumnResponse implements Parcelable {

    /**
     * id : 1
     * name : 推荐
     * image_2x : http://xtecher.com/web/src/app/2@2x.png
     * image_3x : http://xtecher.com/web/src/app/2@3x.png
     */

    private long id;
    private String name;
    private String image_2x;
    private String image_3x;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage_2x() {
        return image_2x;
    }

    public void setImage_2x(String image_2x) {
        this.image_2x = image_2x;
    }

    public String getImage_3x() {
        return image_3x;
    }

    public void setImage_3x(String image_3x) {
        this.image_3x = image_3x;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.id);
        dest.writeString(this.name);
        dest.writeString(this.image_2x);
        dest.writeString(this.image_3x);
    }

    public ColumnResponse() {
    }

    protected ColumnResponse(Parcel in) {
        this.id = in.readLong();
        this.name = in.readString();
        this.image_2x = in.readString();
        this.image_3x = in.readString();
    }

    public static final Parcelable.Creator<ColumnResponse> CREATOR = new Parcelable.Creator<ColumnResponse>() {
        @Override
        public ColumnResponse createFromParcel(Parcel source) {
            return new ColumnResponse(source);
        }

        @Override
        public ColumnResponse[] newArray(int size) {
            return new ColumnResponse[size];
        }
    };
}
